///////////////////////////////////////////////////////////////////////////
// C++ code generated with wxFormBuilder (version Apr 21 2008)
// http://www.wxformbuilder.org/
//
// PLEASE DO "NOT" EDIT THIS FILE!
///////////////////////////////////////////////////////////////////////////

#include "MyMapTree.h"

///////////////////////////////////////////////////////////////////////////

MyMapTree::MyMapTree( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : wxFrame( parent, id, title, pos, size, style )
{
	this->SetSizeHints( wxDefaultSize, wxDefaultSize );
	
	wxStaticBoxSizer* mapSizer;
	mapSizer = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, wxT("Map") ), wxVERTICAL );
	
	mapTree = new wxTreeCtrl( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTR_DEFAULT_STYLE );

	mapSizer->Add( mapTree, 1, wxALL|wxEXPAND, 5 );
	
	this->SetSizer( mapSizer );
	this->Layout();
}

MyMapTree::~MyMapTree()
{
}

//void MyMapTree::construct(MyGraph* g )
//{
//    graph = g;
//    bm_vertex* vert_bm = graph->getVertexMap();
//    root = mapTree->AddRoot(_T("System"));
//    int i=0;
//    typedef bm_vertex::right_map::const_iterator right_const_iterator;
//    vector<string>* list;
//    for(right_const_iterator iter = vert_bm->right.begin(), iend = vert_bm->right.end(); iter != iend; ++iter)
//    {
//        mapTree->AppendItem(root, wxString(iter->first.c_str(), wxConvUTF8));
//        list = graph->getVertexNets(iter->second);
//        i++;
//    }
//
//
//}
